package yhao.demo.web.firstWeb.config;

import org.apache.dubbo.config.spring.ReferenceBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import yhao.demo.service.person.dubboapi.PersonDubbo;
import yhao.infra.feature.dubbo.ConfigFactory;
import yhao.infra.feature.dubbo.DubboConfig;

/**
 * 客户端配置文件写法可参考
 */
@Configuration
@Import({DubboConfig.class})
public class DubboCustomerConfiguration {
    @Bean(name="personDubbo")
    public ReferenceBean personDubbo(){
        return ConfigFactory.makeQuickReferenceBean("personDubbo", PersonDubbo.class);
    }
}
